import addr from '../apiConfig';
import { axios } from '../libs/axiosSetting';

export function system(params) {
  return axios({
    url: `${addr}/a/system/list`,
    method: 'get',
    data: params,
  });
}

export function menus(params) {
  return axios({
    url: `${addr}/a/menu/list`,
    method: 'get',
    data: params,
  });
}

export function userlist(params) {
  return axios({
    url: `${addr}/a/menu/user`,
    method: 'get',
    data: params,
  });
}


export function update(params) {
  return axios({
    url: `${addr}/a/menu/update`,
    method: 'post',
    data: params,
  });
}


export function insert(params) {
  return axios({
    url: `${addr}/a/menu/insert`,
    method: 'post',
    data: params,
  });
}


export function del(params) {
  return axios.get(`${addr}/a/menu/delete`, params);
}
